package com.yonyou.brigade.third_parties.tuniu.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author duhqh@yonyou.com
 * @since 2018-12-17
 */
@TableName("tn_user_history")
public class TnUserHistory extends Model<TnUserHistory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 员工姓名
     */
    @TableField("user_name")
    private String userName;
    /**
     * 员工工号
     */
    @TableField("user_no")
    private String userNo;
    /**
     * 员工编号
     */
    @TableField("person_code")
    private String personCode;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 证件号码
     */
    @TableField("person_id")
    private String personId;
    /**
     * 职务
     */
    private String duty;
    /**
     * 部门ID
     */
    @TableField("dept_id")
    private String deptId;
    private Date ts;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getPersonCode() {
        return personCode;
    }

    public void setPersonCode(String personCode) {
        this.personCode = personCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public String getDuty() {
        return duty;
    }

    public void setDuty(String duty) {
        this.duty = duty;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String USER_NAME = "user_name";

    public static final String USER_NO = "user_no";

    public static final String PERSON_CODE = "person_code";

    public static final String PHONE = "phone";

    public static final String EMAIL = "email";

    public static final String PERSON_ID = "person_id";

    public static final String DUTY = "duty";

    public static final String DEPT_ID = "dept_id";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TnUserHistory{" +
                "id=" + id +
                ", userName=" + userName +
                ", userNo=" + userNo +
                ", personCode=" + personCode +
                ", phone=" + phone +
                ", email=" + email +
                ", personId=" + personId +
                ", duty=" + duty +
                ", deptId=" + deptId +
                ", ts=" + ts +
                "}";
    }
}

